package com.piggy.auth;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration;
import com.piggy.common.datasource.config.MybatisPlusConfig;
import com.piggy.common.satoken.annotation.EnableCustomConfig;
import com.piggy.common.satoken.annotation.EnableCustomFeignClients;
import com.piggy.common.satoken.config.LoadBalanceConfig;
import com.piggy.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Import;

import java.util.TimeZone;

/**
 * 认证授权中心
 *
 * @author shark
 */
@EnableCustomSwagger2
@Import({ LoadBalanceConfig.class })
@EnableCustomFeignClients
@RefreshScope
@SpringBootApplication(exclude = {DynamicDataSourceAutoConfiguration.class, DruidDataSourceAutoConfigure.class, DataSourceAutoConfiguration.class, MybatisPlusConfig.class})
public class PIGYAuthApplication {
    public static void main(String[] args) {
        TimeZone timeZone = TimeZone.getTimeZone("GMT+8");
        TimeZone.setDefault(timeZone);
        SpringApplication.run(PIGYAuthApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  认证授权中心启动成功   ლ(´ڡ`ლ)ﾞ  \n" );
    }
}
